<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      /* 设置不同颜色的border */
      /* .block {
        display: inline-block;
        height: 0;
        width: 0;
        border-top: 50px solid yellowgreen;
        border-bottom: 50px solid transparent;
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
      } */

      /* linear-gradient 线性渐变 */
      /* .block {
        display: inline-block;
        height: 100px;
        width: 100px;
        background: linear-gradient(
          45deg,
          blue,
          blue 50%,
          transparent 50%,
          transparent 100%
        );
      } */

      /* conic-gradient 锥形渐变 */
      /* .block {
        display: inline-block;
        height: 100px;
        width: 100px;
        background: conic-gradient(
          from 90deg at 0 0,
          blue 0,
          blue 45deg,
          transparent 45.1deg
        );
      } */

      /* 旋转 transform: rotate */
      /* .block {
        display: inline-block;
        height: 100px;
        width: 141px;
        position: relative;
        overflow: hidden;
      }

      .block::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: blue;
        transform-origin: 0 0;
        transform: rotate(45deg);
      } */

      /* clip-path 使用裁剪创建元素的可显示区域 */
      /* .block {
        display: inline-block;
        height: 100px;
        width: 100px;
        background: blue;
        clip-path: polygon(0 0, 100% 0, 0 100%, 0 0);
      } */


      /* 特殊字符控制三角形 */
      .block {
        font-size: 100px;
        color: blue;
      }

    </style>
  </head>
  <body>
    <!-- <div class="block"></div> -->
    <div class="block">&#9650</div>
  </body>
</html>
